package com.zhangchuchu.neohealth.service.impl;

import com.zhangchuchu.neohealth.entity.Notice;
import com.zhangchuchu.neohealth.mapper.NoticeMapper;
import com.zhangchuchu.neohealth.service.NoticeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService {
    @Override
    public Notice getLastNotice() {
        return baseMapper.getLatestNotice();
    }
}
